﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class UserControls_V_Latestnews : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        getlatestnews();
    }

    //latestnews根据新闻发布时间显示
    public void getlatestnews()
    {
        VPINews.BLL.News bll_news = new VPINews.BLL.News();

        //按发布时间绑定前5条数据 
        DataSet ds = bll_news.GetList(5, "1=1", "PubDate desc");
        DataList1.DataSource = ds;
        DataList1.DataBind();
    }
}
